const checkLogin = () => {
  const token = localStorage.getItem('token')
  const periodValidity = localStorage.getItem('periodValidity')
  const currentTime = new Date().getTime()
  if (token && periodValidity && currentTime < periodValidity) {
    return true
  } else {
    return false
  }
}

export { checkLogin }